import unittest
import requests
import config
from api.BattleMemberDetail import BattleMemberDetail


class GetBattleDetail(unittest.TestCase):
    def setUp(self):
        self.session = requests.session()

    def tearDown(self):
        self.session.close()

    def test01_getBattleDetail(self):
        params = {
    "service_name": "nkomarket.BattleDashboardProvider.BattleMemberDetail",
    "param": {
        "queryDto": {
            "battleId": 456,
            "stage": -1,
            "teacherId": 3367
        }
    }
}
        get_detail = BattleMemberDetail()
        response = get_detail.battleMemberDetail(self.session,params,config.TOKEN_RESULT[0].get("xhx_token"))
        config.prints(response)
        print(f"响应信息：{response.json()}")
        self.assertEqual("ok",response.json().get("msg"))
